package com.example.springboot.entity;

import java.sql.Timestamp;

public class SelfServicePoint {

    private Integer pointId; // 自助点ID
    private String name; // 自助点名称
    private String address; // 自助点地址
    private String contactNumber; // 联系电话
    private Timestamp createdAt; // 创建时间
    private Boolean isActive; // 是否激活
    private Integer adminId; // 管理该自助点的管理员ID
    private String poster;
    private Double latitude; // 新增字段
    private Double longitude; // 新增字段
    private Integer deviceCount; // 新增字段
    // Getters and Setters
    public Integer getPointId() {
        return pointId;
    }

    public void setPointId(Integer pointId) {
        this.pointId = pointId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getContactNumber() {
        return contactNumber;
    }

    public void setContactNumber(String contactNumber) {
        this.contactNumber = contactNumber;
    }

    public Timestamp getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Timestamp createdAt) {
        this.createdAt = createdAt;
    }

    public Boolean getIsActive() {
        return isActive;
    }

    public void setIsActive(Boolean isActive) {
        this.isActive = isActive;
    }

    public Integer getAdminId() {
        return adminId;
    }

    public void setAdminId(Integer adminId) {
        this.adminId = adminId;
    }

    // toString() for debugging
    @Override
    public String toString() {
        return "SelfServicePoint{" +
                "pointId=" + pointId +
                ", name='" + name + '\'' +
                ", address='" + address + '\'' +
                ", contactNumber='" + contactNumber + '\'' +
                ", createdAt=" + createdAt +
                ", isActive=" + isActive +
                ", adminId=" + adminId +
                '}';
    }

    public String getPoster() {
        return poster;
    }

    public void setPoster(String poster) {
        this.poster = poster;
    }

    public Double getLatitude() {
        return latitude;
    }

    public void setLatitude(Double latitude) {
        this.latitude = latitude;
    }

    public Double getLongitude() {
        return longitude;
    }

    public void setLongitude(Double longitude) {
        this.longitude = longitude;
    }

    public Integer getDeviceCount() {
        return deviceCount;
    }

    public void setDeviceCount(Integer deviceCount) {
        this.deviceCount = deviceCount;
    }
}
